#ifndef TAIYUN_H
#define TAIYUN_H

#include <QWidget>
#include <QObject>
#include <QtGui>
#include <stdlib.h>
#include <QBrush>
#include <QColor>
#include <Qt>
#include <anatomicallink.h>
#include <QImage>
#include <vtkLookupTable.h>

class Taiyun : public QWidget
{
    Q_OBJECT

public:
    Taiyun(AnatomicalLink *link, double maxCor, double minCor, QWidget *parent);
	~Taiyun();
    double GetCorrelation(void);
    AnatomicalLink* getLink();
    void setColormap(vtkLookupTable *lut);

protected:
    void paintEvent(QPaintEvent *event);

private:
	void recreate();

	double cMax;
	double cMin;
    AnatomicalLink *aLink;
	QImage *im;
	vtkLookupTable *colormap;
};

#endif
